<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/jquery-ui-1.7.2.custom.min.css" type=text/css rel=stylesheet>
<title>管理区域</title>
</head>
<body>
<div id="man_zone">

<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
<form id="form1" name="form1" method="post" action="">
  <tr>
    <td align="right">信息类型</td>
    <td>
      <select name="type">
      	<%foreach item=val from=$infotype%>
        <option value="<%$val.name%>"><%$val.name%></option>
        <%/foreach%>
      </select>  <a href="index.php?m=infotype" target="_blank">修改信息类型模型</a>
    </td>
  </tr>
  <tr>
    <td align="right">标题</td>
    <td><input type="text" name="title" value="<%$classified.title%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">审核</td>
    <td>
    <input name="audit" type="checkbox" value="1" <%if $classified.audit%>checked="checked"<%/if%>>
    </td>
  </tr>
  <tr>
    <td align="right">自定义属性</td>
    <td>
      <label>
      	头条<input name="flag[]" type="checkbox" id="checkbox"<%if $classified.flag&&in_array('h',$classified.flag)%> checked="checked"<%/if%> value="h" />
      </label>
      <label>
      	推荐<input name="flag[]" type="checkbox" id="checkbox" <%if $classified.flag&&in_array('c',$classified.flag)%> checked="checked"<%/if%> value="c" />
      </label>
      <label>
      	幻灯<input name="flag[]" type="checkbox" id="checkbox"<%if $classified.flag&&in_array('f',$classified.flag)%> checked="checked" <%/if%> value="f" />
      </label>
      <label>
      	特荐<input name="flag[]" type="checkbox" id="checkbox"<%if $classified.flag&&in_array('a',$classified.flag)%> checked="checked"<%/if%> value="a" />
      </label>
      <label>
      	图片<input name="flag[]" type="checkbox" id="checkbox"<%if $classified.flag&&in_array('p',$classified.flag)%> checked="checked"<%/if%> value="p" />
      </label>
    </td>
  </tr>
   <tr>
     <td align="right">所属栏目</td>
     <td>
       <select name="classid">
         <%foreach item=val from=$columns%>
         <%math equation="(x*y)" x=$val.level y=1 assign=le%>
         <option value="<%$val.classid%>"<%if $val.classid eq $column.classid%> selected="selected"<%/if%>><%'——'|str_repeat:$le%><%$val.classname%></option>
         <%/foreach%>
         </select>
       </td>
   </tr>
  <tr>
    <td align="right">图片</td>
    <td><input type="text" name="pic" value="<%$classified.pic%>"  size="60" /></td>
  </tr>
  <tr>
    <td align="right">联系人</td>
    <td><input type="text" name="contact" value="<%$classified.contact%>"  /></td>
  </tr>
  <tr>
    <td align="right">联系电话</td>
    <td><input type="text" name="tel" value="<%$classified.tel%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">QQ号码</td>
    <td><input type="text" name="qq" value="<%$classified.qq%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">联系邮箱</td>
    <td><input type="text" name="email" value="<%$classified.email%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">所在地</td>
    <td><input type="text" name="location" value="<%$classified.location%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">联系地址</td>
    <td><input type="text" name="address" value="<%$classified.address%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">过期日期</td>
    <td><input type="text" name="passdate" value="<%$classified.passdate%>"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">发布人IP</td>
    <td><input type="text" name="ip" value="<%$classified.ip|default:$ip%>"  size="60"  /></td>
  </tr>
   <tr>
    <td align="right">信息简介</td>
    <td>
      <textarea name="info" id="info" cols="45" rows="5"><%$classified.info%></textarea></td>
  </tr>
  <tr>
    <td align="right"> 信息内容 </td>
    <td><textarea name="content" id="content" cols="45" rows="5"><%$classified.content%></textarea></td>
  </tr>
  <tr>
    <td colspan="2">
    <input type="hidden" name="referrer" id="referrer" value="" />
    <input type="hidden" name="wid" value="<%$arg.wid%>" />
    <input name="preview" type="button" value="预览" />
    <input name="" type="submit" value="提交" />
    </td>
  </tr>
  </form>
</table>

</div>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace('content');
CKFinder.SetupCKEditor(CKEDITOR, 'style/js/ckeditor/ckfinder/');
document.getElementById("referrer").value = document.referrer;
//]]>
if (parent) setTimeout(function(){parent.restIframe();},500);
</script>
</body>
</html>